package ca.concordia.comp6231.record;


public class CriminalRecord extends Record {
	
	private final int REQUIRED_NO_OF_ARGS = 5;
	
	private String crimeDescription;
	
	public CriminalRecord(String... args){
		if(args.length < REQUIRED_NO_OF_ARGS){
			throw new IllegalArgumentException("A minimum of :" + REQUIRED_NO_OF_ARGS + 
												" has to be supplied when creating a " + 
												this.getClass().getSimpleName());
		}else{
			this.setRecordID			(args[0]);
			this.setFirstName			(args[1]);
			this.setLastName			(args[2]);
			this.setCrimeDescription	(args[3]);
			this.setStatus				(args[4]);
		}
		
	}
	
	public String getCrimeDescription() {
		return crimeDescription;
	}
	public void setCrimeDescription(String crimeDescription) {
		this.crimeDescription = crimeDescription;
	}
}
